<?php


?>

<link href="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/ui-timepicker/style.css" type="text/css" rel="stylesheet">
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/ui-timepicker/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery/ui-timepicker/i18n/ui.datepicker-zh-TW.js"   type="text/javascript"></script>

<?php include $this->getLayoutFile('block_top_messages'); ?>
<form class="form1" method="post" action="<?php echo $requestAction; ?>">

    <fieldset>
        <legend> 更新眷屬 </legend>

        <div class="leftBlock">

            <div class="field">
                <label for="tel"> 電話 </label>
                <div class="show">
                    <input type="text" name="tel" value="<?php echo $client->getTel(); ?>" />
                </div>
                <div class="info"></div>
            </div>
            <div class="field">
                <label for="phone"> 手機 </label>
                <div class="show">
                    <input type="text" name="phone" value="<?php echo $client->getPhone(); ?>" />
                </div>
                <div class="info"></div>
            </div>

        </div>
        <div class="rightBlock">

            <div class="field">
                <label for="name"> 眷屬真實姓名 </label>
                <div class="show">
                    <input type="text" name="name" value="<?php echo $client->getName(); ?>" />
                </div>
                <div class="info"></div>
                <?php $errorField="name"; include $this->getLayoutFile('block_fields'); ?>
            </div>
            <div class="field">
                <label for="birthday"> 生日 </label>
                <div class="show">
                    <input type="text" id="birthday" name="birthday" value="<?php echo $client->getBirthdayByFormat('Y-m-d'); ?>" />
                </div>
                <div class="info"></div>
            </div>
            <div class="field">
                <label for="memo"> memo </label>
                <div class="show">
                    <textarea name="memo"><?php echo $client->getMemo(); ?></textarea>
                </div>
                <div class="info"></div>
            </div>

        </div>
        <div class="submitBlock">

            <input class="submit" type="submit" value="更新" />

        </div>

    </fieldset>



</form>

<script type="text/javascript">
    $('#birthday').datetimepicker({
        changeYear: true,
        yearRange: '1900:',
        // showTimepicker: false,
    });
</script>
